package com.unknowpupil.design.decorator;

/**
 * @Description: <p>
 *  Decorator 装饰角色
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 10:08
 * @Classname: SuperCar
 * @Version: 1.0
 */
public class SuperCar implements ICar  {
    /**
     * 需要有真实i对象的引用
     * protected 子类可以使用
     */
    protected ICar car;

    public SuperCar(ICar car) {
        super();
        this.car = car;
    }


    @Override
    public void move() {
        car.move();
    }
}
